package com.stlm2.dems.pingxxpay.dao;

import com.stlm2.core.base.BaseDao;
import com.stlm2.dems.pingxxpay.entity.OrderPay;

import java.util.List;
import java.util.Map;

public interface OrderPayDao extends BaseDao<OrderPay> {

      long getCountFromOrderPayByCodeChannel(Map<String, Object> map);

      OrderPay  getOrderPayFromOrderPayByCodeChannel(Map<String, Object> map);

      List<OrderPay> getOrderPayFromOrderPayByState(Map<String, Object> map);
      /*
      * 获取某一个订单，距离当前时间3分钟之内，发出的支付申请对象。
      * */
      List<OrderPay> getOrderPaysByTimeAndCodeAndState(Map<String, Object> map);

      OrderPay getByCode(String code);
}